-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build(windows): fix builder-bob failing to find tsc
#387
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@chrispader can you confirm that this will still work with our monorepo setup? |
hmm, the reason we specify the tsc location is because otherwise Adding the typescript dependency will prevent hoisting of the package in the root, but BuilderBob can find it. We can either not hoist it, or fix this for non-unix platforms |
I would prefer to use the same TypeScript version for all modules here to avoid any version conflicts, so I think hoisting is the best approach right? |
yes, i'd also agree |
I'm running into the same issue now on Windows.. 😅 |
Should this be cancelled in favor of packages/react-native-nitro-modules/package.json? |
This fixes the issue. |
tommy have you looked at Nitro for Windows again recently? |
I started looking into the build errors I hit last time. One is in RNScreens. It needs to be updated to support New Arch on Windows. The other build issue is related to Windows SDK. I'm still trying to figure out what changed between then and now. |
dope thanks, just ping me if I can help in any way |
Nitro currently fails to build on a Windows machine:
The reason is because we're specifying a Unix-specific path in
package.json
. Removing it makes things build, but we get this warning instead:⚠ Failed to locate tsc in the workspace. Falling back to the binary found in PATH at D:\nitro\node_modules\.bin\tsc.EXE. Consider adding typescript to your devDependencies or specifying the tsc option for the typescript target.
Even after I've added
typescript
todevDependencies
, this warning still appears. I suspect it's a bug in builder-bob, but I haven't looked into it.